/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package spiele.tetromino.decorator;

import spiele.block.Block;
import spiele.tetromino.Tetromino;

/**
 *
 * @author martin
 */
public final class CCW implements Tetromino{
  private final Tetromino _back;
  
  private CCW(final Tetromino back){
    _back=back;
  }

  @Override
  public Block getAt(int col, int row) {
    return _back.getAt(row, _back.width()-col);
  }

  @Override
  public int width() {
    return _back.heigth();
  }

  @Override
  public int heigth() {
    return _back.width();
  }
  
}
